import { createStore, applyMiddleware } from 'redux'; // 使用redux提供的方法创建store
import reducer from './reducer';
import thunk from 'redux-thunk'; // 引入thunk 中间件，用于让Store支持异步action

// 引入redux-devtools-extension库
// import { composeWithDevTools } from 'redux-devtools-extension';
export default createStore(reducer, applyMiddleware(thunk));
